package cn.caplike.demo.google.protobuf.with_netty;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * Description:
 *
 * @author LiKe
 * @version 1.0.0
 * @date 2021-12-01 13:08
 */
public class TestServerChannelInboundHandler extends SimpleChannelInboundHandler<MyDataInfo.Person> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, MyDataInfo.Person msg) {
        // 服务端收到消息后
        System.out.println(msg.getName());
        System.out.println(msg.getAddress());

    }
}
